package com.dingreading.cloud.app.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "store_android")
public class StoreAndroid implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;

    /**
     * 门店uid
     */
    @ApiModelProperty(value = "门店uid")
    private String storeUid;

    /**
     * 门店名称
     */
    @ApiModelProperty(value = "门店名称")
    private String storeName;

    /**
     * 设备标识
     */
    @ApiModelProperty(value = "设备标识")
    private String deviceId;

    /**
     * 设备状态 1.启用 0.禁用
     */
    @ApiModelProperty(value = "设备状态 1.启用 0.禁用")
    private Integer enabled;

    /**
     * 版本号
     */
    @ApiModelProperty(value = "版本号")
    private Integer versionCode;

    /**
     * ip地址
     */
    @ApiModelProperty(value = "ip地址")
    private String ip;

}
